package annotation;

import org.jetbrains.annotations.Contract;

import java.util.Date;

/**
 *1111111111
 */
@SuppressWarnings("all")
public class AnnotationDemo1 {
    private String a;
    private int m;
    private int n;

    /**
     * @param a
     */
    @Contract(pure = true)
    public AnnotationDemo1(String a) {
        this.a = a;
    }

    /**
     *
     * @param m
     * @param n
     * @param p
     * @return
     */
    public int sum(int m,int n,int p) {
        return m+n;
    }


    /**
     * @param m
     * @param n
     * @return
     */
    public int sum(int m,int n){
        this.m = m;
        Date date=new Date();
        long l = date.getTime();
        this.n = n;
        return m+n;
    }
}
